package com.djq.hhc.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestHeader;

/**
 * Created with IntelliJ IDEA.
 * @Author: dadd7
 * @Date: 2023/04/08/下午 10:22
 * @Description:
 */

@FeignClient(value = "service-credit")
public interface CreditExchangeFeignClient {

    @PutMapping("/credit/creditExchange/exchange/{orderId}/{credit}/{price}")
    public boolean exchange(@RequestHeader("Authorization") String token,
                            @PathVariable String orderId,
                            @PathVariable Integer credit,
                            @PathVariable Integer price);
}